package com.example.sprinbootdemo.mapper;


import com.example.sprinbootdemo.entity.AvailableCar;
import com.example.sprinbootdemo.entity.Car;
import com.example.sprinbootdemo.entity.RentCount;
import org.apache.ibatis.annotations.Mapper;

import javax.swing.*;
import java.util.List;

@Mapper
public interface CarMapper {
    List<Car> selectAll();
    void addCar(Car car);
    void deleteCarByCarNumber(int carNumber);
    void updateCarByCarNumber(Car car);
    Car getCarByCarNumber(int carNumber);
    List<AvailableCar> getAvailableCars();
    List<AvailableCar> getAvailableCarsByModelName(String carname);
    List<RentCount> getRentCount();

}
